# 职位详情
from rest_framework import serializers
from apps.recruit.models import Recruit
from apps.recruit.serializers.EnterpriseDetailSerializer import EnterpriseDetailModelSerializer

# 职位详细信息
class JobDetailModelSerializer(serializers.ModelSerializer):
    enterprise = EnterpriseDetailModelSerializer()
    class Meta:
        model = Recruit
        fields = ('id','enterprise','jobname','salary','condition','education','type',
                  'city','address','state','labels','detailcontent','detailrequire','visits','createtime','users')

